package com.pipi.biyesheji.dao.mapper.ext;

import com.pipi.biyesheji.dao.mapper.ProductMapper;
import com.pipi.biyesheji.dao.model.ProductDO;
import com.pipi.biyesheji.pojo.ProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MyBatis Ext Mapper for Product.
 */

@Mapper
@Repository
public interface ProductExtMapper extends ProductMapper {

    /**
     * <p> 随机获取5条数据 </p>
     * @param
     * @return List<ProductDO>
     * @throws
     * @author 皮皮 (pipi@maihaoche.com)
     * @date 2019/4/18 12:56 AM
     */
    List<ProductDO> randFive();

    /**
     * <p> 设置图片url </p>
     * @param productVO
     * @return int
     * @throws
     * @author 皮皮 (pipi@maihaoche.com)
     * @date 2019/4/18 1:11 AM
     */
    int setImageUrl(ProductVO productVO);

}